package com.cangxuan.manage.dao;


import com.cangxuan.manage.entity.Issuer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface IssuerDao {
    List<Issuer> getIssuer();

    int insert(Issuer issuer);

    int update(Issuer issuer);

    int delete(int id);
    @Select("select count(0) from goods where issuer_id=#{id}")
    int selectCount(@Param("id") int id);
}
